﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MM.Common.Base
{
    public class FunctionInfo
    {
        // Fields
        private string functionName;
        private string functionParameter;
        private string moduleName;
        private string moduleSerial;
        private bool openFlag;

        // Methods
        public FunctionInfo()
        {
            this.openFlag = true;
        }

        public FunctionInfo(string funname)
            : this()
        {
            this.FunctionName = funname;
        }

        public FunctionInfo(string funname, string modname, string para, string serial, bool openflag)
            : this()
        {
            this.FunctionName = funname;
            this.ModuleName = modname;
            this.FunctionParameter = para;
            this.ModuleSerial = serial;
            this.openFlag = openflag;
        }

        // Properties
        public string FunctionName
        {
            get
            {
                return this.functionName;
            }
            set
            {
                this.functionName = value;
            }
        }

        public string FunctionParameter
        {
            get
            {
                return this.functionParameter;
            }
            set
            {
                this.functionParameter = value;
            }
        }

        public string ModuleName
        {
            get
            {
                return this.moduleName;
            }
            set
            {
                this.moduleName = value;
            }
        }

        public string ModuleSerial
        {
            get
            {
                return this.moduleSerial;
            }
            set
            {
                this.moduleSerial = value;
            }
        }

        public bool OpenFlag
        {
            get
            {
                return this.openFlag;
            }
            set
            {
                this.openFlag = value;
            }
        }
    }
}
